#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <xmmsclient/xmmsclient++.h>
#include <QtGui/QMainWindow>
#include <QSortFilterProxyModel>
#include "playlistmodel.h"
#include "audioclient.h"

namespace Ui
{
    class MainWindowClass;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent, AudioClient* client);
    ~MainWindow();

public slots:
    int updateCurrentDuration(const int& value);
    void addFilesToPlaylist();
    void hideJumpBar();
    void playSelected(const QModelIndex& selectedIndex);
    void removeSelectedEntries();
    void showJumpBar();
    void stopSliderUpdate();
    void updateCurrentPosition(const unsigned int& newPosition);
    void updateSongPosition();
    void updatePlaytime(const int& value);

private:
    Ui::MainWindowClass *ui;
    AudioClient* client;
    PlaylistModel* playlistQueueModel;
    QSortFilterProxyModel* playlistProxyModel;
    bool sliderIsPressed;
};

#endif // MAINWINDOW_H
